package com.bus.core.events.order;


import com.bus.core.events.RemoteBusEvent;
import lombok.Data;
import lombok.EqualsAndHashCode;

@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper=false)
public class OrderRemoteEvent extends RemoteBusEvent {

    private final String orderNo;

    public OrderRemoteEvent(Object source, String originService, String destinationService, String orderNo) {
        super(source, originService, destinationService);
        this.orderNo = orderNo;
    }

    public OrderRemoteEvent(Object source, String originService, String orderNo) {
        this(source, originService, null,orderNo);
    }
}
